package com.fyzk.model;

import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.ViewModel;

import com.fyzk.activity.lottery.recommend_order.MyRecommendOrderBean;

/**
 * @author yangfeng
 * @create 2018/10/12 17:58
 * @Describe 在方案详情页，进入登录页面后，再次回来，刷新数据
 */
public class BluePrintDetailsViewModel extends ViewModel {
    private MutableLiveData<MyRecommendOrderBean> mBluePrintDetailsViewModel;

    public BluePrintDetailsViewModel() {
        mBluePrintDetailsViewModel = new MutableLiveData<>();
    }

    public void onRequestRefreshLogin(MyRecommendOrderBean mData) {
        getBluePrintDetailsViewModel().setValue(mData);
    }

    public MutableLiveData<MyRecommendOrderBean> getBluePrintDetailsViewModel() {
        return mBluePrintDetailsViewModel;
    }
}
